module.exports = {
    success: data => ({
        //操作成功后向前端返回的数据结构
        res_code: 0,
        res_error: '',
        res_body: {
            ...data
        }
    }),
    error: (errno, message) => ({
        res_code: errno,
        res_error: message,
        res_body: {}
    })
}